﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>DevExpress MVC TextBox</Title>
    <Author>Žeks</Author>
    <Shortcut>dxtb</Shortcut>
    <Description></Description>
    <SnippetTypes>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>name</ID>
        <Default>value</Default>
      </Literal>
    </Declarations>
    <Code Language="HTML">
      <![CDATA[
@Html.DevExpress().TextBox(textEdit => 
{
  textEdit.Name = "$name$";
  textEdit.Properties.ConvertEmptyStringToNull = true;
  textEdit.ShowModelErrors = true;
  textEdit.ControlStyle.CssClass = "editor";
}).Bind(Model).GetHtml()
      ]]>
    </Code>
  </Snippet>
</CodeSnippet>